#ifndef LOGINPLAYERLIST_H
#define LOGINPLAYERLIST_H

#include <boost/shared_ptr.hpp>
#include "Logic/Player.h"
#include "Logic/NetObject.h"

class NetWork;

class LoginPlayerlist
{
public:
	void init();
	void tick(int deta);
	void addPlayer(LoginPlayer_PTR pPlayer);
	LoginPlayer_PTR getPlayer(ConectionID id)const;
	bool kickPlayer(const std::string& username);
	int  getSize()const;
private:
	std::vector<LoginPlayer_PTR> m_players;
	mutable My_CriticalSection m_playerCritical;
};


#endif